<?php
if ( isset($_SESSION['auth'] ))
{
	include 'connect.php';
	
	$sql = "SELECT user_id FROM $table_name 
		  WHERE user_name='$_SESSION[logname]'";
	$result = mysql_query($sql,$db);
	$infos = mysql_fetch_array($result); 
	
	$sql = "SELECT * FROM $table_educ 
	  WHERE user_id='$infos[user_id]'";
	$result = mysql_query($sql,$db);
	while($item = mysql_fetch_array($result))
	{
?>
				<div class="subcolumns education vevent vcard">

					<div class="c62l">
						<div class="subcl">
							<span class="summary bold"><?php echo $item['summary']; ?></span>
						</div>
					</div>

					<div class="c38r">
						<div class="subcr text-right">
							<abbr title="dtstart" class="dtstart"><?php echo disDate($item['dtstart'],$int="-"); ?></abbr> - 
							<abbr title="dtend" class="dtend"><?php echo disDate($item['dtend'],$int="-"); ?></abbr>
						</div>
					</div>
				</div>


<?php } ?>
   
<?php }
	else { include 'erreur.php'; } 
?>